//
//  BMAExercice.m
//  Autismus
//
//  Created by Nicolas CHENG on 04/12/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import "BMAExercice.h"

@implementation BMAExercice

@synthesize name;
@synthesize explanation;
@synthesize index;
@synthesize enabled;
@synthesize next_level_count;
@synthesize prev_level_count;
@synthesize emotions;

+ (BMAExercice *)exerciceWithDictionary:(NSDictionary *)aDict forName:(NSString *)aName
{
    BMAExercice *result = [[BMAExercice alloc] init];
    result.name = aName;
    result.explanation = @"Not yet implemented";
    result.index = [[aDict objectForKey:@"index"] intValue];
    result.enabled = [[aDict objectForKey:@"enabled"] boolValue];
    result.next_level_count = [[aDict objectForKey:@"next_level_count"] intValue];
    result.prev_level_count = [[aDict objectForKey:@"prev_level_count"] intValue];
    result.emotions = [NSArray array];
    
    return result;
}

@end
